<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>个人信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.5.5/css/layui.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form">

    <input id="id" name="id" type="text" hidden="hidden" />
    <div class="layui-form-item">
        <label class="layui-form-label required">用户名</label>
        <div class="layui-input-block">
            <input type="text" id="username" name="username" lay-verify="required" readonly="readonly" value="" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">真实姓名</label>
        <div class="layui-input-block">
            <input type="text" id="realname" name="realName" lay-verify="required" readonly="readonly"  value="" class="layui-input">

        </div>
    </div>
    <!--<div class="layui-form-item">-->
        <!--<label class="layui-form-label required">性别</label>-->
        <!--<div class="layui-input-block">-->
            <!--<input type="radio" name="sex" value="男" title="男" checked="">-->
            <!--<input type="radio" name="sex" value="女" title="女">-->
        <!--</div>-->
    <!--</div>-->

    <div class="layui-form-item">
        <label class="layui-form-label required">密码</label>
        <div class="layui-input-block">
            <input type="text" id="password"  name="password" lay-verify="required" readonly="readonly"   value="" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-block">
            <input type="email" id="email" name="email" readonly="readonly"  value="" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">手机</label>
        <div class="layui-input-block">
            <input type="number" id="telephone" name="telephone" lay-verify="required" readonly="readonly"  value="" class="layui-input">
        </div>
    </div>
</div>
<script src="../lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
<script src="../js/utils.js"></script>
<script>
    layui.use(['form'], function () {
        var form = layui.form,
            layer = layui.layer,
            $ = layui.$;
        $.ajax({
                type:"GET",
                url:"/sport/admin/personalData",
                async:false,
                success:function (data) {
                    $('#id').val(data.id);
                    $('#username').val(data.username);
                    $('#realname').val(data.realName);
                    $('#password').val(data.password);
                    $('#email').val(data.email);
                    $('#telephone').val(data.telephone);
                }
            });
    });
</script>
</body>
</html>